package com.yijiaw.service;

import com.yijiaw.domain.Part;
import com.yijiaw.domain.Parttype;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for Parttype entities
 * 
 */
public interface ParttypeService {

	/**
	 * Save an existing Part entity
	 * 
	 */
	public Parttype saveParttypeParts(Integer id, Part related_parts);

	/**
	 * Return a count of all Parttype entity
	 * 
	 */
	public Integer countParttypes();

	/**
	 * Return all Parttype entity
	 * 
	 */
	public List<Parttype> findAllParttypes(Integer startResult, Integer maxRows);

	/**
	 */
	public Parttype findParttypeByPrimaryKey(Integer id_1);

	/**
	 * Delete an existing Part entity
	 * 
	 */
	public Parttype deleteParttypeParts(Integer parttype_id, Integer related_parts_id);

	/**
	 * Save an existing Parttype entity
	 * 
	 */
	public void saveParttype(Parttype parttype);

	/**
	 * Delete an existing Parttype entity
	 * 
	 */
	public void deleteParttype(Parttype parttype_1);

	/**
	 * Load an existing Parttype entity
	 * 
	 */
	public Set<Parttype> loadParttypes();
}